<script setup lang="ts">
  import { ref } from 'vue'
  import { onLoad } from '@dcloudio/uni-app'
  const bannerInfo = ref({})
  onLoad((option:any) => {
    bannerInfo.value = JSON.parse(option.item)
  })
</script>

<template>
  <xx-title title="详情"/>
  <view class="notification-body">
    <view class="title">{{bannerInfo.name}}</view>
    <view class="content">
      <mp-html :content="bannerInfo.content" containerStyle="font-size:28rpx;line-height:1.8;color:#505363;white-space: break-spaces;"/>
    </view>
  </view>
</template>

<style scoped lang="scss">
  .notification-body{
    padding: 20rpx;
    .title{
      color: #505363;
      font-size: 40rpx;
      font-weight: 500;
    }
    .time{
      font-size: 24rpx;
      color: #818496;
      margin: 16rpx 0;
      text{
        color: #AF6941;
      }
    }
    .content{
      font-size: 28rpx;
      line-height: 1.8;
      color: #505363;
    }
  }
  video{
    width: 100%;
    max-width: 100%;
    min-width: 100%;
  }
</style>
